home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT Popup Options 1.xpl < prev    next >
Text File  |  2001-05-05  |  1KB  |  61 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH"="Appearance\System\Message Windows"
  5. "NAME"="Pop-Up Messages"
  6. "VERSION"="2.00"
  7. "OSVERSION"="0101011"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Display all errors using a pop-up window (Default)"
  10. "TEXT 2"="Display only system errors using a pop-up window"
  11. "TEXT 3"="Do not display ANY error as pop-up window"
  12. "DESCRIPTION 1"="This controls what Windows should do if an error happens."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com/"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="Thanks to Andrew Bourdon for this tip!"
  17. "COMMENT 2"="Thanks to AXCEL216 as well: http://members.aol.com/axcel216/2k1.htm#ERMO"
  18.  
  19.  
  20. sV1="HKLM\System\CurrentControlSet\Control\Windows\ErrorMode"
  21.  
  22.  
  23. Sub Plugin_Initialize 
  24.   i=RegReadValue(sV1)
  25.  
  26.   if i=2 then 
  27.      Call SetUIElement(3,true)
  28.   else
  29.      if i=1 then 
  30.         Call SetUIElement(2,true)
  31.      else
  32.         Call SetUIElement(1,true)
  33.      end if
  34.   end if
  35.  
  36. End Sub
  37.  
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  if GetUIElement(3)=true then
  43.     Call RegWriteValue(sV1,"2",2)
  44.  else
  45.     if GetUIElement(2)=true then
  46.        Call RegWriteValue(sV1,"1",2)
  47.     else
  48.        Call RegWriteValue(sV1,"0",2)
  49.     end if
  50.  end if
  51.  
  52.  Call Restart()
  53. End Sub
  54.  
  55.  
  56. Sub Plugin_Terminate 
  57. End Sub
  58.  
  59.  
  60.  
  61.